package o;

import android.content.Context;
import com.huawei.appgallery.foundation.account.bean.UserSession;
import com.huawei.appgallery.foundation.store.bean.splitinstall.BundleInstallResultCache;
import java.util.List;

public class dqa extends dpn<Boolean, Boolean> {
    protected /* synthetic */ Object ˋ(Context context, Object obj) throws InterruptedException {
        return ˊ(context, (Boolean) obj);
    }

    protected /* synthetic */ void ˏ(Context context, Object obj, Object obj2) throws InterruptedException {
        ॱ(context, (Boolean) obj, (Boolean) obj2);
    }

    protected /* synthetic */ Object ॱ(Context context) throws InterruptedException {
        return ˏ(context);
    }

    public dqa() {
        this.ˊ = "BundleInsResultRemedyTask";
    }

    protected Boolean ˏ(Context context) {
        if (!UserSession.getInstance().isLoginSuccessful()) {
            Logger.ˎ(this.ˊ, "unLogined!!!");
            return Boolean.valueOf(false);
        } else if (doo.ˊ(context)) {
            return Boolean.valueOf(true);
        } else {
            Logger.ˎ(this.ˊ, "no network!!!");
            return Boolean.valueOf(false);
        }
    }

    protected Boolean ˊ(Context context, Boolean bool) {
        if (bool == null || !bool.booleanValue()) {
            return Boolean.valueOf(false);
        }
        if (Logger.ˎ()) {
            Logger.ˏ("ScheduleRepeatService", this.ˊ + " execute");
        }
        ˏ();
        return Boolean.valueOf(true);
    }

    private void ˏ() {
        List<BundleInstallResultCache> ˏ = cgd.ˎ().ˏ();
        if (ˏ.isEmpty()) {
            Logger.ˏ(this.ˊ, "BundleInstallResultCache is empty.");
            return;
        }
        for (BundleInstallResultCache ˏ2 : ˏ) {
            cfw.ˎ(ˏ(ˏ2), new cgf(true));
        }
    }

    private cvt ˏ(BundleInstallResultCache bundleInstallResultCache) {
        cvt o_cgj = new cgj();
        o_cgj.ॱ(bundleInstallResultCache.ᐝ());
        o_cgj.ˎ(bundleInstallResultCache.ʼ());
        o_cgj.setServiceType_(bundleInstallResultCache.ˎ());
        o_cgj.ˎ(bundleInstallResultCache.ˋ());
        o_cgj.ˏ(bundleInstallResultCache.ʽ());
        o_cgj.ˏ(bundleInstallResultCache.ॱॱ());
        o_cgj.ˋ(bundleInstallResultCache.ॱ());
        o_cgj.ˊ(bundleInstallResultCache.ʻ());
        o_cgj.ॱ(bundleInstallResultCache.ˊ());
        return o_cgj;
    }

    protected void ॱ(Context context, Boolean bool, Boolean bool2) {
    }
}
